package com.cash.channel.svc.service.api;

import com.cash.channel.api.constant.Constant;
import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.model.response.RepayStatusResponse;
import com.cash.channel.api.service.BaseApi;
import com.cash.channel.svc.service.base.RepayStatus;
import com.cash.channel.svc.util.ServiceUtils;
import org.springframework.stereotype.Service;

@Service("repayStatus")
public class CJH000017 implements BaseApi<RepayStatusResponse> {

    @Override
    public ApiResponseModel<RepayStatusResponse> doProcess(ApiRequestModel apiRequestModel) throws CashChannelException {
        RepayStatus repayStatus = ServiceUtils.getBean(apiRequestModel.getInterfaceType() + Constant.SERVICE.查询还款结果, RepayStatus.class);
        return repayStatus.getRepayStatus(apiRequestModel);
    }

}
